#HTML <li>
The <li> HTML element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.
#Attributes
-
value
: This integer attribute indicates the current ordinal value of the list item as defined by the<ol>
element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. This attribute has no meaning for unordered lists (<ul>
) or for menus (<menu>
). -
type
Deprecated : This character attribute indicates the numbering type:a
: lowercase lettersA
: uppercase lettersi
: lowercase Roman numeralsI
: uppercase Roman numerals1
: numbers
This type overrides the one used by its parent
<ol>
element, if any.Note: This attribute has been deprecated; use the CSS
list-style-type
property instead.